/*
 * The LevelDB-CLI Project
 * Copyright (C) 2024 JuRuoqwq<BitPasta@163.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#ifndef CORRECT_INPUT_TABLE_H
#define CORRECT_INPUT_TABLE_H

#include <vector>
#include <string>

// 命令表
const std::vector<std::string> COMMAND_TABLE = {
    "set",
    "get",
    "delete",
    "del",
    "show",
    "close",
    "clear",
    "options",
    "opts",
    "read_options",
    "ropts",
    "write_options",
    "wopts",
    "help",
    "version",
    "quit",
    "open"
};

// 子命令表
const std::vector<std::string> PARAMETER_TABLE = {
    "kvs",
    "keys"
};

// Options变量表
const std::vector<std::string> VARIABLE_TABLE = {
    "create_if_missing",
    "error_if_exists",
    "paranoid_checks",
    "write_buffer_size",
    "max_open_files",
    "block_size",
    "block_restart_interval",
    "max_file_size",
    "zstd_compression_level",
    "reuse_logs",
    "verify_checksums",
    "fill_cache",
    "sync"
};

// 值表
const std::vector<std::string> VALUE_TABLE = {
    "true",
    "false"
};

// 子命令
const std::vector<std::string> SUBCMD_TABLE = {
    "all",
    "prefix"
};

#endif